package cn.xn.hrms.api.dto.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ysz
 */
@Data
public class RecruitmentReqDTO {
    @NotNull(message = "部门必填")
    private Integer departmentId;
    @NotNull(message = "岗位必填")
    private Integer positionId;
    @NotNull(message = "需求人数必填")
    private Integer needNum;
    @NotBlank(message = "招聘内容必填")
    private String demand;
    private String needEducation;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recruitStartDate;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date recruitEndDate;
    private Integer recruitStatus;
}
